package com.rybbaby.tss.front.tssClassLessonsExchangeRecord.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.io.Serializable;

/**
 * @description 班级调换记录表
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-09 下午11:50:14
 */
@Entity
@Table(name = "tss_class_lessons_exchange_record")
@DynamicUpdate(true)
@DynamicInsert(true)
public class TssClassLessonsExchangeRecord implements Serializable {

	private static final long serialVersionUID = 8219247451261169209L;

	/** 主键 **/
	private String id;
	/** 课节id **/
	private String lessonId;
	/** 变更后主体json **/
	private String afterValue;
	/** 变更前主体json **/
	private String beforeValue;
	/** 当前操作者id **/
	private String adminUserId;
	/** 创建时间 **/
	private java.sql.Timestamp createTime;
	/** 版本 **/
	private Integer version;



	/**
	 * 方法: 取得主键
	 *
	 * @return java.lang.String 主键
	 */
	@Id
	@GeneratedValue(generator = "tss_class_lessons_exchange_recordIDGenerator" , strategy = GenerationType.AUTO)
	@GenericGenerator(name = "tss_class_lessons_exchange_recordIDGenerator" , strategy = "uuid")
	@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}

	/**
	 * 方法: 设置主键
	 *
	 * @param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}


	/**
	 * 方法: 取得当前操作者id
	 *
	 * @return java.lang.String 当前操作者id
	 */
	@Column(name = "adminUserId", nullable= true, length = 32)
	public String getAdminUserId() {
		return this.adminUserId;
	}

	/**
	 * 方法: 设置当前操作者id
	 *
	 * @param adminUserId 当前操作者id
	 */
	public void setAdminUserId(String adminUserId) {
		this.adminUserId = adminUserId;
	}


	/**
	 * 方法: 取得创建时间
	 *
	 * @return java.sql.Timestamp 创建时间
	 */
	@Column(name = "createTime", nullable= true, length = 19)
	public java.sql.Timestamp getCreateTime() {
		return this.createTime;
	}

	/**
	 * 方法: 设置创建时间
	 *
	 * @param createTime 创建时间
	 */
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}

	/**
	 * 方法: 取得选班人数
	 *
	 * @return java.lang.Integer 选班人数
	 */
	@Version
	@Column(name = "version", nullable= true, length = 11)
	public Integer getVersion() {
		return this.version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}


	@Column(name = "afterValue", nullable= true, length = 1000)
	public String getAfterValue() {
		return afterValue;
	}

	public void setAfterValue(String afterValue) {
		this.afterValue = afterValue;
	}
	@Column(name = "beforeValue", nullable= true, length = 1000)
	public String getBeforeValue() {
		return beforeValue;
	}

	public void setBeforeValue(String beforeValue) {
		this.beforeValue = beforeValue;
	}

	@Column(name = "lessonId", nullable= true, length = 32)
	public String getLessonId() {
		return lessonId;
	}

	public void setLessonId(String lessonId) {
		this.lessonId = lessonId;
	}
}